<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:xalan= "http://xml.apache.org/xalan" exclude-result-prefixes="xalan">
	<xsl:template match="/">
    		<table border="0" width="60%" cellpadding="2" cellspacing="0">
				<xsl:if test="/root/request/id_element">
				<tr>
					<td class="padded">
					<xsl:value-of select="/root/request/id_element"/>
					</td>
				</tr>
				</xsl:if>
				<xsl:if test="/root/record/branches/response/record">
				<tr>
					<td class="padded">
						<select style="width:300px" class="content" size="1" name="branches__{/root/request/id_element}" id="branches__{/root/request/id_element}" >
							<option value="" >- - <xsl:value-of select="/root/gui/strings/branch"/> - - </option>
							<xsl:for-each select="/root/record/branches/response/record">
								<option value="{id_branch}">
									<xsl:if test="/root/request/id_branch=id_branch">
										<xsl:attribute name="selected"/>
									</xsl:if>
									<xsl:value-of select="."/>
								</option>
							</xsl:for-each>
						</select>
					</td>
				</tr>
				</xsl:if>
				<xsl:if test="/root/record/area/response/record">
				<tr>
					<td class="padded">
						<select style="width:300px" class="content" size="1" name="id_area" >
							<option value="" >- - <xsl:value-of select="/root/gui/strings/areas"/> - - </option>
							<xsl:for-each select="/root/record/area/response/record">
								<option value="{id_area}">
									<xsl:if test="/root/request/id_area=id_area">
										<xsl:attribute name="selected"/>
									</xsl:if>
									<xsl:value-of select="."/>
								</option>
							</xsl:for-each>
						</select>
					</td>
				</tr>
				</xsl:if>
			</table>
	</xsl:template>
</xsl:stylesheet>
